package org.example.uua.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.oauth2.provider.token.TokenStore;
import org.springframework.security.oauth2.provider.token.store.InMemoryTokenStore;

/**
 * @author : yurui
 * @date : 2024/6/1
 * @TIME : 19:34
 * @project : AuthDemo
 * token令牌的存储管理
 */
@Configuration
public class TokenConfig {

    //内存方式的令牌存储管理
    @Bean
    public TokenStore tokenStore(){
        return new InMemoryTokenStore();
    }
}
